package com.itheima.controller;


import com.itheima.entity.Result;
import com.itheima.pojo.TFile;
import com.itheima.service.TFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;

@RestController
@RequestMapping("/file")
public class WebPictureController {

    @Autowired
    private TFileService tFileService;

    //获取图片信息接口
    //获取uid数组，切割逗号，获取每一个uid的图片信息存入list集合返回
    @GetMapping("/getPicture")
    public Result getPicture(@RequestParam("fileIds") String fileIds, @RequestParam(name = "code", required = false) String code) {

        List<List<TFile>> list = tFileService.getPicture(fileIds, code);

        return new Result("success", list);
    }


    //多图片上传接口


}